import Main from '@/views/main.vue';
import IFrame from '@/components/IFrame'
import ChildView from '@/components/ChildView'

export default [
    // 人事管理
    {
        path: '/hr',
        name: 'hr',
        meta: {
            icon: 'el-icon-menu',
            title: '人事管理',
            access: ['hr:page']
        },
        component: Main,
        children: [
            {
                path: 'employee',
                name: 'employee',
                meta: {
                    icon: 'el-icon-menu',
                    title: '员工管理',
                    access: ['hr:employee:page']
                },
                component: () =>
                    import ('@/views/hr/employee/index.vue')
            },
            {
                path: 'dept',
                name: 'dept',
                meta: {
                    icon: 'el-icon-menu',
                    title: '部门管理',
                    access: ['hr:dept:page']
                },
                component: () =>
                    import ('@/views/hr/dept/index.vue')
            },
            {
                path: 'post',
                name: 'post',
                meta: {
                    icon: 'el-icon-menu',
                    title: '岗位管理',
                    access: ['hr:post:page']
                },
                component: () =>
                    import ('@/views/hr/post/index.vue')
            },
            {
                path: 'calendar',
                name: 'calendar',
                meta: {
                    icon: 'el-icon-menu',
                    title: '工作日设定',
                    access: ['hr:calendar:page']
                },
                component: () =>
                    import ('@/views/hr/calendar/index.vue')
            }
        ]
    },
];
